﻿
function Resaltar_On(GridView) {
    if (GridView != null) {
        if (GridView.style.backgroundColor != "#f5f1f4") {
            GridView.originalBgColor = GridView.style.backgroundColor;
            GridView.style.backgroundColor = "#FFFF99";
        }
        else {
            GridView.originalBgColor = "#FFFF99";
            GridView.style.backgroundColor = GridView.originalBgColor;
        }
    }
}

function Resaltar_Off(GridView) {
    if (GridView != null) {
        if (GridView.style.backgroundColor != "#f5f1f4") {
            GridView.style.backgroundColor = GridView.originalBgColor;
        }
        else {
            GridView.originalBgColor = "#FFFF99s";
            GridView.style.backgroundColor = GridView.originalBgColor;
        }
    }
}

// NUMERO MAXIMO DE CARATERES
function Count(text, numero) {
    var maxlength = new Number(numero); // Change number to your max length.
    if (document.getElementById(text.id).value.length > maxlength) {
        text.value = text.value.substring(0, maxlength);
    }
}